module.exports = {
  // 连接像素流
  connect: `((data)=>{console.log(data)},(data)=>{console.log(data)})`,
  // 断开像素流
  disconnect: `()`,
  // 静态类
  Gls: {
    // 重置场景
    resetScene: `()`,
    // 获取场景
    loadLevel: `(["/Game/Map/LevelStreamingMap1"],(res)=>{
      console.log(res)})`,
    // 卸载关卡
    unloadLevel: `(["/Game/Map/LevelStreamingMap1"])`,
    setActorVisibleByTags: `(
    {
        "Tags":
        [
            {
                "Tag":"对象1",
                "Show":true
            },
            {
                "Tag":"对象2",
                "Show":false
            }
        ]
    });`,
    setNightview: `(true);`,
    setBuildEffect: `("规划专项", true);`,
  },
  // 镜头方法
  Camera: {
    setView: `({
    Location: {
        X: -594288.4595799337,
        Y: 460229.5602113775,
        Z: 900973.1862497347,
    },
    Rotation: {
        Roll: 0,
        Pitch: -36.00901031494141,
        Yaw: -59.273998205385624,
    },
    NewZoom: 50
    })`,
    getView: `(
  (res)=>{
    //此处仅用作页面调试输出日志,不作为开发示例输出日志
    console.log(res)
  }
)`,
    focusActor: `(   
  {
     "Zoom":2,
     "FocusActor":"标签1"
 })`,
    playRoaming: `({
    RoamingPath:[
        {
            Location : {X:0.0,Y:0.0,Z:1000.0},
            Rotation : {Pitch:0.0,Yaw:0.0,Roll:0.0},
            Time     : 5.0
        },
        {
            Location : {X:1000.0,Y:1000,Z:1000.0},
            Rotation : {Pitch:0.0,Yaw:20,Roll:0.0},
            Time     : 5.0
        },
        {
            Location : {X:0.0,Y:0.0,Z:2000.0},
            Rotation : {Pitch:0.0,Yaw:0.0,Roll:0.0},
            Time     : 5.0
        },
        ]
        },(res)=>{
          //此处仅用作页面调试输出日志,不作为开发示例输出日志
            logMessages.push('播放完毕!',res)
        }
        )`,
    pauseRoaming: `()`,
    resumeRoaming: `()`,
    endRoaming: `()`,
    getRoamingPoint: `(
  (res)=>{
    //此处仅用作页面调试输出日志,不作为开发示例输出日志
    console.log(res)
  }
)`,
    splitScreen: `(
  {
    Tag1:"方案1",
    Tag2:"方案2"
  }
)`,
    cancleSplit: `()`,
  },
  // 测量方法
  Measure: {
    clear: `()`,
    activeCoordinates: `()`,
    activeDistance: `()`,
    activeArea: `()`,
    activeHeight: `()`,
  },
  // 分析工具
  Analysis: {
    clear: `()`,
    visualLine: `()`,
    visualField: `()`,
    skyline: `()`,
  },
  // poi点
  Marker: {
    add: `(
 {
        //---------------------------------------
        //Style部分
        "Type":"-1",
        "CustomPoiPath":"/Script/Engine.Blueprint'/Game/DEV/UMG/POI/BP_POI_AQZL.BP_POI_AQZL_C'",
        "InteractionBtnImage":"/Script/Engine.Texture2D'/Game/DEV/Texture/POI/T_AQYH_Text.T_AQYH_Text'",
        //---------------------------------------
        
        //---------------------------------------
        //POI数据
        "Group": "盐田中学",
        "Infos": [
                     {
                        "Poi_Id": "15809009",
                        "Location": 
                        {
                            "X": 1000,
                            "Y": 1217,
                            "Z": 3000
                        },
                        "Text": "盐田中学第一教学楼"，
                      },
                      {
                        "Poi_Id": "1588162",
                        "Location":
                        {
                            "X": -4102,
                            "Y": 1248,
                            "Z": 3000
                        },
                        "Text": "盐田中学第二教学楼"
                      }
                  ]
          //---------------------------------------       
    },
  res => {
    console.log('add poi', res);
  },
);`,
    deleteById: `({
     Poi_Id: "1580867581750059009",
});`,
    deleteByGroupName: `("groupName");`,
    deleteAll: `()`,
  },
  // 鼠标事件
  Event: {
    addPoiEvent: `((res)=>{
     console.log(res)
 }, 1);`,
    removePoiEventByid: `(eventid)`,
    removePoiEventAll: `()`,
  },
  // 天气
  Weather: {
    setTime: `(12);`,
    setTimeByName: `('morning');`,
    setWeather: `(0);`,
  },

  // 动画序列
  Animate: {
    active: `(path);`,
    cancel: `()`,
    play: `((res)=>{
    console.log(res)
});`,
    pause: `()`,
    continue: `()`,
    setSpeed: `(speed)`,
    setNode: `(node)`,
    getNode: `((res)=>{
    console.log(res)
});`,
  },
  // 东莞片区模型生长
  AreabuildGrow: {
    active: `();`,
    cancel: `()`,
    play: `((res)=>{
    console.log(res)
});`,
    pause: `()`,
    continue: `()`,
    setSpeed: `(speed)`,
    setNode: `(node)`,
    getNode: `((res)=>{
    console.log(res)
});`,
  },
  // 建筑分层
  BuildSplit: {
    active: `(id);`,
    cancel: `()`,
    highlightByName: `(name,type=可选);`,
    highlightByMetadata: `({
    DatasmithUID:'20248201639'
});`,
    cancelHighlight: `()`,
    setActorVisible: `(name, visible);`,
    viewByFloor: `(floor,(res)=>{
    console.log(res)
});`,
    restoreBuild: `();`,
  },
};
